{layout name="layout/index" /}
<div class="panel panel-default panel-intro">
    <div class="panel-heading" style=" padding-top:5px;">
        <ul class="nav nav-tabs">
                     <li class="active"><a href="#tab_1" data-toggle="tab">基本设置</a></li>
                   <li ><a href="#tab_2" data-toggle="tab">其他设置</a></li> 
        </ul>
    </div>
<div class="panel-body is-dialog">    
<form id="edit-form" class="form-horizontal form-ajax ajax-no-close" role="form" data-toggle="validator" method="post">      
<div id="myTabContent" class="tab-content">
<div class="tab-pane fade active in" id="tab_1">
    <div class="form-group">
        <label for="c-keywords" class="control-label col-xs-12 col-sm-2">专题名称:</label>
        <div class="col-xs-12 col-sm-6">
         <input type="text" name="special_name" id="special_name" value="{$info.special_name|default=''}" class="form-control" data-rule="required">
        </div><span>推送到百度：</span><input name="insertseo" type="checkbox" {empty name="info['special_id']"}checked{/empty} title="勾选推送到百度" style="border:none;width:auto; position:relative; top:2px;margin-bottom:3px;margin-right:8px;" >
    </div> 
 {notempty name="info.special_id"}   
    <div class="form-group">
        <label for="c-keywords" class="control-label col-xs-12 col-sm-2">数据关联:</label>
        <div class="col-xs-12 col-sm-6" style=" line-height:35px;">
<a href="javascript:;" id="{$info.special_id}" class="btn-link btn-editone" data-url="{:admin_url('admin/vod/index',array('tid'=> $info['special_id']))}" data-name="添加视频到专题{$info.special_name}">关联视频({$info.countvod})个</a>&nbsp;&nbsp;<a href="javascript:;" id="{$info.special_id}" class="btn-link btn-editone" data-url="{:admin_url('admin/news/index',array('tid'=> $info['special_id']))}" data-name="添加文章到专题{$info.special_name}">关联文章({$info.countnews})篇</a>&nbsp;&nbsp;<a href="javascript:;" id="{$info.special_id}" class="btn-link btn-editone" data-url="{:admin_url('admin/star/index',array('tid'=> $info['special_id']))}" data-name="添加明星到专题{$info.special_name}">关联明星({$info.countstar})位</a>
        </div>
    </div> 
 {/notempty}        
    <div class="form-group">
        <label for="c-keywords" class="control-label col-xs-12 col-sm-2">专题分类:</label>
        <div class="col-xs-12 col-sm-6">
        <select name="special_cid" class="form-control selectpicker" data-rule="required">
        <option value="">选择分类</option>
{volist name="listspecial" id="vo"}<option value="{$vo.list_id}" {if isset($info['special_cid'])} {eq name="vo.list_id" value="$info['special_cid']"}selected{/eq}{/if}>{$vo.list_name}</option>
{volist name="vo['son']" id="splist"}<option value="{$splist.list_id}" {eq name="splist.list_id" value="$info['special_cid']"}selected{/eq}>├ {$splist.list_name}</option>{/volist}
{/volist}
</select>
</div> 
</div> 
    <div class="form-group">
        <label for="c-keywords" class="control-label col-xs-12 col-sm-2">专题属性:</label>
        <div class="col-xs-12 col-sm-6" style=" line-height:35px;">
         {volist name=":config('document_position')" id="vo"}<input  style="border:none;width:auto; position:relative; top:2px;margin-bottom:3px;margin-right:8px;{if $key != 1}margin-left:10px;{/if}" type="checkbox" value="{$key}" name="special_prty[]"   {if  isset($info['special_prty_array']) && in_array($key,$info.special_prty_array)}checked="checked"{/if} />{$vo}
            {/volist}
        </div>
    </div> 
            <div class="form-group">
            <label for="c-image" class="control-label col-xs-12 col-sm-2">专题LOGO:</label>
            <div class="col-xs-12 col-sm-8">
            <div class="form-inline">
                <input id="c-image" class="form-control" size="75" name="special_logo" type="text" value="{$info['special_logo']|default=''}">
                <span><button type="button" id="plupload-image" class="btn btn-danger plupload" data-input-id="c-image" data-mimetype="image/*" data-multipart='{"sid":"special"}' data-multiple="false" data-preview-id="p-image"><i class="fa fa-upload"></i> 上传</button></span>
                <ul class="row list-inline plupload-preview" id="p-image"></ul>
            </div>
            </div>
          </div>
          <div class="form-group">
            <label for="c-image" class="control-label col-xs-12 col-sm-2">专题海报:</label>
            <div class="col-xs-12 col-sm-8">
            <div class="form-inline">
                <input id="c-images" class="form-control" size="75" name="special_banner" type="text" value="{$info['special_banner']|default=''}">
                <span><button type="button" id="plupload-images" class="btn btn-danger plupload" data-input-id="c-images" data-mimetype="image/*" data-multipart='{"sid":"special"}' data-multiple="false" data-preview-id="p-images"><i class="fa fa-upload"></i> 上传</button></span>
                <ul class="row list-inline plupload-preview" id="p-images"></ul>
            </div>
            </div>
          </div>  
                        
    <div class="form-group">
        <label for="c-keywords" class="control-label col-xs-12 col-sm-2">专题SEO关键词:</label>
        <div class="col-xs-12 col-sm-6">
         <input type="text" name="special_keywords" value="{$info.special_keywords|default=''}" class="form-control" data-tip="用于前台专题页面的关键词">
        </div>
    </div>  
    <div class="form-group">
        <label for="c-keywords" class="control-label col-xs-12 col-sm-2">专题SEO描述:</label>
        <div class="col-xs-12 col-sm-6">
         <input type="text" name="special_description" value="{$info.special_description|default=''}" class="form-control" data-tip="用于前台专题页面的描述">
        </div>
    </div>  
    <div class="form-group">
        <label for="c-keywords" class="control-label col-xs-12 col-sm-2">专题介绍:</label>
        <div class="col-xs-12 col-sm-10">
         <textarea class="summernote" name="special_content" style="height:300px;width:100%">{:zanpian_news_img_array($info['special_content'])}</textarea>
        </div>
    </div> 
    
       <div class="form-group">
                <label for="content" class="control-label col-xs-12 col-sm-2">专题状态:</label>
                <div class="col-xs-12" style="width:auto">
                    <select name="special_status" class="form-control selectpicker">
                        <option value="1">显示</option>
                        <option value="0" {eq name="info.special_status" value="0" }selected{/eq}>隐藏</option>
                    </select>
                </div>
            </div>  
    <div class="form-group">
        <label for="c-keywords" class="control-label col-xs-12 col-sm-2">专题时间:</label>
        <div class="col-xs-12" style="width:auto">
         <input type="text" name="special_addtime" value="{notempty name="info.special_addtime"}{$info.special_addtime|date='Y-m-d H:i:s',###}{else/}{:date('Y-m-d H:i:s',time())}{/notempty}" class="form-control">
        </div>
        <input name="checktime" type="checkbox" style="border:none;width:auto;position:relative; top:5px;" value="1" {notempty name="info.admin_time_edit"}checked{/notempty} title="勾选则使用系统当前时间">
    </div>             
            
     </div>
<div class="tab-pane fade" id="tab_2">
    <div class="form-group">
        <label for="c-keywords" class="control-label col-xs-12 col-sm-2">专题拼音:</label>
        <div class="col-xs-12 col-sm-3">
         <input type="text" name="special_letters"  value="{$info.special_letters|default=''}" class="form-control" data-tip="留空自动获取">
        </div>
    </div>
     <div class="form-group">
                <label for="content" class="control-label col-xs-12 col-sm-2">推荐星级:</label>
                <div class="col-xs-12 col-sm-6" style="position:relative; top:5px;">
                 <input name="special_stars" id="special_stars" type="hidden" value="{$info.special_stars|default=''}">{volist name=":admin_star_arr($info.special_stars)" id="ajaxstar"}<img src="{$config.site.cdnurl}admin/zanpiancms/img/star{$ajaxstar}.gif" id="special_{$i}" class="addstars">{/volist}
                </div>
            </div>          
      <div class="form-group">
        <label for="c-keywords" class="control-label col-xs-12 col-sm-2">标题颜色:</label>
        <div class="col-xs-12 col-sm-2">
         <input type="text" name="special_color"  value="{$info.special_color|default=''}" class="form-control" data-tip="点击选色" style="width:80px;text-align:center" id="color">
        </div>
    </div>
      <div class="form-group">
        <label for="c-keywords" class="control-label col-xs-12 col-sm-2">总人气:</label>
        <div class="col-xs-12 col-sm-2">
         <input type="text" name="special_hits"  value="{$info.special_hits|default=''}" class="form-control" style="width:80px;text-align:center">
        </div>
    </div>    
      <div class="form-group">
        <label for="c-keywords" class="control-label col-xs-12 col-sm-2">月人气:</label>
        <div class="col-xs-12 col-sm-2">
         <input type="text" name="special_hits_month"  value="{$info.special_hits_month|default=''}" class="form-control" style="width:80px;text-align:center">
        </div>
    </div> 
       <div class="form-group">
        <label for="c-keywords" class="control-label col-xs-12 col-sm-2">周人气:</label>
        <div class="col-xs-12 col-sm-2">
         <input type="text" name="special_hits_week"  value="{$info.special_hits_week|default=''}" class="form-control" style="width:80px;text-align:center">
        </div>
    </div> 
      <div class="form-group">
        <label for="c-keywords" class="control-label col-xs-12 col-sm-2">日人气:</label>
        <div class="col-xs-12 col-sm-2">
         <input type="text" name="special_hits_day"  value="{$info.special_hits_day|default=''}" class="form-control" style="width:80px;text-align:center">
        </div>
    </div>         
      <div class="form-group">
        <label for="c-keywords" class="control-label col-xs-12 col-sm-2">评分值:</label>
        <div class="col-xs-12 col-sm-2">
         <input type="text" name="special_gold"  value="{$info.special_gold|default=''}" class="form-control" style="width:80px;text-align:center">
        </div>
    </div> 
      <div class="form-group">
        <label for="c-keywords" class="control-label col-xs-12 col-sm-2">评分人数:</label>
        <div class="col-xs-12 col-sm-2">
         <input type="text" name="special_golder"  value="{$info.special_golder|default=''}" class="form-control" style="width:80px;text-align:center">
        </div>
    </div>        
      <div class="form-group">
        <label for="c-keywords" class="control-label col-xs-12 col-sm-2">顶:</label>
        <div class="col-xs-12 col-sm-2">
         <input type="text" name="special_up"  value="{$info.special_up|default=''}" class="form-control" style="width:80px;text-align:center">
        </div>
    </div>
      <div class="form-group">
        <label for="c-keywords" class="control-label col-xs-12 col-sm-2">踩:</label>
        <div class="col-xs-12 col-sm-2">
         <input type="text" name="special_down"  value="{$info.special_down|default=''}" class="form-control" style="width:80px;text-align:center">
        </div>
    </div> 
      <div class="form-group">
        <label for="c-keywords" class="control-label col-xs-12 col-sm-2">独立模版:</label>
        <div class="col-xs-12 col-sm-3">
         <input type="text" name="special_skin"  value="{$info.special_skin|default=''}" class="form-control">
        </div>
    </div>          
     </div>     
</div>     
{notempty name="info.special_id"} 
<input type="hidden" name="special_id" value="{$info['special_id']|default=''}"> 
{/notempty} 
   <div class="form-group hidden layer-footer">
      <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">确定</button>
            <button type="reset" class="btn btn-default btn-embossed">重置</button>
            <button type="reset" class="btn btn-primary btn-embossed btn-close" onclick="Layer.closeAll();"> 关闭</button>
        </div>
    </div>
  </form>      
</div>
</div>